﻿using NUnit.Framework;
using SpecFlowTfsLinker.Printer;
using SpecFlowTfsLinker.Test.Common;
using SpecFlowTfsLinker.Test.Resources;

namespace SpecFlowTfsLinker.Test.Printer
{
    [TestFixture]
    public class FeaturePrinterTest : TestInitialization
    {
        [Test]
        public void CanDisplaySpecFlowFeatureCompleteUserStory()
        {
            Assert.AreEqual(TestCaseResources.GutterGame.US_COMPLETE,
                            new FeaturePrinter(UserStoryResources.Bowling.CompleteUserStory).Print().Trim());

            Assert.AreEqual(UserStoryResources.Calculation.CompleteFeatureFile,
                new FeaturePrinter(UserStoryResources.Calculation.CompleteUserStory).Print());

            Assert.AreEqual(UserStoryResources.WeirdAndComplex.CompleteFeatureFile,
    new FeaturePrinter(UserStoryResources.WeirdAndComplex.CompleteUserStory).Print());
        }
    }
}